package com.wx.studentManage.service;

import com.wx.studentManage.model.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface UserService {
    String register(User user);

    String login(User user, HttpServletRequest request);

    String loginRedis(User user, HttpServletRequest request);

    int perfect(User user);

    User findUserByUserCode(String userCode);

    List<User> getUserList(Map<String, Object> data);

    int getSelectCount(Map<String, Object> data);

    int updateState(User user);

    List<User> getUserByTeamCode(String teamCode);

    List<User> getUserItemByNoTeamCode();

    String updateUserTeam(String teamCode, List<Integer> ids);

    int getCountByTeam(String teamCode);

    String updateUserRole(String teamCode, String userCode);

    String updateLeaderToStu(Integer id);
}
